package com.cdpark.vo;



/**
 * OrderItemsVO entity. @author MyEclipse Persistence Tools
 */

public class OrderItemsVO  implements java.io.Serializable {


    // Fields    

     private Long itemId;
     private OrderVO orderVO;
     private CDVO CDVO;
     private Long quantity;
     private Double price;
     private String remark1;
     private String remark2;
     private String remark3;


    // Constructors

    /** default constructor */
    public OrderItemsVO() {
    }

    
    /** full constructor */
    public OrderItemsVO(OrderVO orderVO, CDVO CDVO, Long quantity, Double price, String remark1, String remark2, String remark3) {
        this.orderVO = orderVO;
        this.CDVO = CDVO;
        this.quantity = quantity;
        this.price = price;
        this.remark1 = remark1;
        this.remark2 = remark2;
        this.remark3 = remark3;
    }

   
    // Property accessors

    public Long getItemId() {
        return this.itemId;
    }
    
    public void setItemId(Long itemId) {
        this.itemId = itemId;
    }

    public OrderVO getOrderVO() {
        return this.orderVO;
    }
    
    public void setOrderVO(OrderVO orderVO) {
        this.orderVO = orderVO;
    }

    public CDVO getCDVO() {
        return this.CDVO;
    }
    
    public void setCDVO(CDVO CDVO) {
        this.CDVO = CDVO;
    }

    public Long getQuantity() {
        return this.quantity;
    }
    
    public void setQuantity(Long quantity) {
        this.quantity = quantity;
    }

    public Double getPrice() {
        this.price = this.CDVO.getPrice()*this.CDVO.getDiscount()*0.1*this.getQuantity();
    	return this.price;
    }
    
    public void setPrice(Double price) {
        this.price = price;
    }

    public String getRemark1() {
        return this.remark1;
    }
    
    public void setRemark1(String remark1) {
        this.remark1 = remark1;
    }

    public String getRemark2() {
        return this.remark2;
    }
    
    public void setRemark2(String remark2) {
        this.remark2 = remark2;
    }

    public String getRemark3() {
        return this.remark3;
    }
    
    public void setRemark3(String remark3) {
        this.remark3 = remark3;
    }
   








}